﻿using System;
using System.ComponentModel;
using System.ComponentModel.Design;
using System.Collections;
using System.Linq;
using System.Workflow.ComponentModel.Compiler;
using System.Workflow.ComponentModel.Serialization;
using System.Workflow.ComponentModel;
using System.Workflow.ComponentModel.Design;
using System.Workflow.Runtime;
using System.Workflow.Activities;
using System.Workflow.Activities.Rules;
using System.Collections.Generic;
namespace TaskProcessActivity
{
    public partial class TaskProcessActivity : SequenceActivity
    {

        public bool isTaskCreated = false;
        public bool isTaskCompleted = false;

        public int itemID = default(int);
        public string libraryName = default(string);
        public string siteUrl = default(string);
        public string title = default(string);



        public TaskProcessActivity()
        {
            InitializeComponent();
        }

        private void TaskCreatedActivity_ExecuteCode(object sender, EventArgs e)
        {
            SPUtility.ListActivity list = new SPUtility.ListActivity();
            Dictionary<string, string> dict = new Dictionary<string, string>();
            dict.Add("Title", title);
            list.AddItem(siteUrl, libraryName, dict);

        }

        private void TaskCompletedActivity_ExecuteCode(object sender, EventArgs e)
        {

        }
    }
}
